<template>
  <div class="shengmu3 base-background-img">
    <div class="g" @click="playFun(g)">
        <img src="~@/assets/youxiaoxianjie/shengmu/3/g.png">
    </div>
    <div class="k" @click="playFun(k)">
        <img src="~@/assets/youxiaoxianjie/shengmu/3/k.png">
    </div>
    <div class="h" @click="playFun(h)">
        <img src="~@/assets/youxiaoxianjie/shengmu/3/h.png">
    </div>
    <c-pdf @closePdf="closePdf" v-if="isshowpdf" :info="info" :infourl="pdfurl"></c-pdf>
  </div>
</template>

<script>
  export default {
    name: 'shengmu3',
    data () {
      return {
        isshowpdf: false,
        infourl: '',
        info: '',
        g: {
          url: 'static/youxiao/pdf/shengmu/g.pdf',
          data: []
        },
        k: {
          url: 'static/youxiao/pdf/shengmu/k.pdf',
          data: []
        },
        h: {
          url: 'static/youxiao/pdf/shengmu/h.pdf',
          data: []
        }
      }
    },
    methods: {
      playFun: function (item) {
        console.log(item)
        this.isshowpdf = true
        this.pdfurl = item.url
        this.info = item.data
      },
      closePdf: function () {
        this.isshowpdf = false
      }
    }
  }
</script>

<style scoped>
.shengmu3 {
  background: url(~@/assets/youxiaoxianjie/shengmu/3/bg.png);
}
.shengmu3 > div {
  position: absolute; 
}
.g {
  top: 290px;
  left: 302px;
}
.k {
  top: 268px;
  left: 570px;
}
.h {
  top: 275px;
  left: 835px;
}
</style>
